public class Tomcat extends Cat {
    public Tomcat () {
	this ("");
    }

    public Tomcat (String name) {
	this.name = name;
    }

    public boolean couldEat(IAnimal obj) {
	if (obj instanceof Dog || obj instanceof Cat) {
	    return false;
	} else if (obj instanceof Frog) {
	    return true;
	}

	return false;
    }

        public String getType (boolean definiteArticle) {
	if (definiteArticle) {
	    return "томкотката";
	} else {
	    return "томкотка";
	}
    }

    public void talk () {
	System.out.println (Main.uppercaseFirst (this.getType (true))
			    + name + " казва \"Томмяу!\"");
    }
}
